//
//  FirstXibViewController.m
//  UI11_xib
//
//  Created by tusm on 16/7/28.
//  Copyright © 2016年 tusm. All rights reserved.
//

#import "FirstXibViewController.h"
// 签订代理,指定代理人, 实现协议方法,
// 指定代理人, 在Xib中可以通过控件向 File's Owner 去指定
// 相当于 self.userTextField.delegate
// 只需要签订代理, 实现代理方法
@interface FirstXibViewController ()<UITextFieldDelegate>
// IBOutlet修饰的属性, 是xib/sb中的控件
// 实心思已经关联的对象,

@property (weak, nonatomic) IBOutlet UITextField *passwordTextFiled;
// 3.xib/sb中控件与VC/自定义Cell关联后,如果属性被删除,对应控件的关联也应删除(右键查看控件)
// 如果控件非常多,出现问题,无从下手
// 查看崩溃信息, reason: '[<FirstXibViewController 0x7f9afade0580> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key userNameTextFiled.'
@end

@implementation FirstXibViewController
// 如果不改变button的属性,直接拖成方法就好
- (IBAction)buttonOfLoading:(id)sender {
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
